const routes = [
  {
    path: "/login",
    component: () => import("pages/Login.vue"),
  },
  {
    path: "/",
    component: () => import("layouts/MainLayout.vue"),
    children: [
      { path: "", component: () => import("pages/IndexPage.vue") },
      {
        name: "signal",
        path: "signal",
        meta: { isAllowBack: true },
        component: () => import("pages/Signal.vue"),
      },
      {
        name: "other",
        path: "other",
        meta: { isAllowBack: true },
        component: () => import("pages/Terminal.vue"),
      },
      {
        name: "setting",
        // path: "setting/:id",
        path: "setting",
        meta: { isAllowBack: true },
        component: () => import("pages/Setting.vue"),
      },
    ],
  },

  // Always leave this as last one,
  // but you can also remove it
  {
    path: "/:catchAll(.*)*",
    component: () => import("pages/ErrorNotFound.vue"),
  },
];

export default routes;
